#include <bits/stdc++.h>
using namespace std;

int main()
{
    string A, B;
    while (cin >> A >> B)
    {
        int hasha[26] = {0};
        int hashb[26] = {0};
        for (auto &ch : A)
            hasha[ch - 'A']++;
        for (auto &ch : B)
            hashb[ch - 'A']++;

        bool ret=true;
        for(int i=0;i<26;i++)
        {
            if(hashb[i]!=0)
            {
                if(hasha[i]<hashb[i]) 
                {
                    ret=false;
                }
            }
        }
        if(ret) cout<<"Yes"<<endl;
        else cout<<"No"<<endl;

    }
    return 0;
}
